#!/bin/bash
for file in `ls *.dot`
do
# the -Gconcentrate=true is to allow near edges going to the same node to merge
# src: http://www.graphviz.org/mywiki/FaqMerge
	cat $file | dot -Gconcentrate=true -Tjpg:cairo > $file.jpg
	rm $file
done
